


#pragma once


class NIPAddr
{
	public:
		static bool  IsPrivateIP( DWORD in_IPaddr );
		static DWORD GetHostIP( bool in_Mode );

	public:
		operator DWORD() const{ return m_IPAddr; };
		void     Set( const DWORD in_IPAddr ){ m_IPAddr = in_IPAddr; };
		void     Set( const string in_IPAddr );
	
	public:
		explicit NIPAddr();
		explicit NIPAddr( const DWORD in_IPAddr );
		explicit NIPAddr( const string in_IPaddr );
		virtual ~NIPAddr();
	private:
		DWORD m_IPAddr;
};


extern const char* NIPAddapter( NIPAddr in_IPAddr );

